/**
 * 开店星公众版
 * @description 基于Yii2+Vue2.0+uniapp研发，H5+小程序+公众号全渠道覆盖，功能完善开箱即用，框架成熟易扩展二开
 * @author 青岛开店星信息技术有限公司
 * @link https://www.kaidianxing.com
 * @copyright Copyright (c) 2020-2022 Qingdao ShopStar Information Technology Co., Ltd.
 * @copyright 版权归青岛开店星信息技术有限公司所有
 * @warning Unauthorized deletion of copyright information is prohibited.
 * @warning 未经许可禁止私自删除版权信息.
 */ 
<template>
    <Container>
        <Breadcrumbs :list="list"></Breadcrumbs>
        <div class="content">
            <div class="title acea-row row-between-wrapper">
                <div>支付宝支付</div>
                <div class="amount">应付金额：<span
                    class="price ">{{mixinsPrice}}</span>元
                </div>
            </div>
            </div>
            <div class="pay-box flex" >
                <div class="left" v-show="loads">
                    <div  class="code" >
                        <img
                            ref="qrcode"
                            class="bicode"
                            src="">

                    </div>
                    <div class="text">
                        <i class="iconfont icon-saomajihuo"></i>
                        <div>
                            <div>请使用支付宝扫一扫</div>
                            <div class="tip">扫描二维码支付</div>
                        </div>
                    </div>
                </div>
                <div class="right"><img src="../../../static/images/order/alipay.png"></div>
            </div>
            <div @click="back" class="selectPay"><i class="iconfont icon-line-left"></i>选择其他支付方式
            </div>
        </div>
    </Container>
</template>


<script>
import mixin from './mixins.js'
export default {
    mixins:[mixin],
    name: "aliPay",
    data() {
        return {
            list: [{
                name: '首页',
                path: '/'
            }, {
                name: '提交订单',
                path: '/goods/detail'
            }, {
                name: '确认订单',
                path: '/order/payment'
            }, {
                name: '支付'
            }],
        }
    },
    created(){
        this.mixinsPrice = this.$route.query.price || ''
        this.getPaymentInfo()
        //在混入方法中
    },
    methods: {
        back() {
            this.$router.back()
        }
    }
}
</script>


<style scoped lang="scss">
.content {
    background-color: #FFFFFF;
    padding: 26px 30px;

    .title {
        margin-bottom: 51px;
        font-size: 20px;
        display: flex;
        align-items: flex-end;
        justify-content: space-between;

        .amount {
            font-size: 14px;
            color: #969696;

            .price {
                font-size: 22px;
                font-weight: bold;
                color: $theme-color;
            }
        }
    }

    .pay-box {
        justify-content: center;

        .left {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;

            .code {
                width: 100%;
                height: 310px;
                border: 1px solid #ccc;

                img {
                    width: 100%;
                    height: 100%;
                }
            }

            .text {
                width: 100%;
                height: 72px;
                background-color: #1676ff;
                color: #fff;
                font-size: 14px;
                margin-top: 16px;
                display: flex;
                align-items: center;
                justify-content: center;

                i {
                    font-size: 46px;
                    margin-right: 30px;
                    font-weight: 400;
                }

                .tip {
                    margin-top: 4px;
                }
            }
        }

        .right {
            margin-left: 144px;
            width: 262px;
            height: 399px;

        }
    }

    .selectPay {
        display: inline-block;
        font-size: 16px;
        color: #236fe9;
        margin-top: 68px;
        cursor: pointer;

        i {
            margin-right: 10px;
            font-weight: 500;
        }
    }
}

</style>